#!/bin/sh

dir=`dirname $0`
echo $dir
for log in `ls $dir/*.log`;do
    temp_file=/tmp/asdasd$$.temp
    tail -3 $log > $temp_file
    cat $temp_file > $log
done
